import { _decorator, Button, Component, Node, v2 } from 'cc';
import HollowOut from './HollowOut';
const { ccclass, property } = _decorator;

@ccclass('HelloWorld')
export class HelloWorld extends Component {
    @property(HollowOut)
    hollowOut: HollowOut = null;

    @property(Button)
    button: Button = null;

    start() {

    }

    public onButtonClick1() {
        this.hollowOut.circleTo(1, v2(0, 0), 100, 0.5)
    }

    public onButtonClick2() {
        this.hollowOut.rectTo(1, v2(111, 111), 100, 200)
    }


}


